{% load form_helpers %}

{% if form.custom_fields %}
    <div class="card">
        <div class="card-header"><strong>Custom Fields</strong></div>
        <div class="card-body">
            {% render_custom_fields form %}
        </div>
    </div>
{% endif %}
{% if form.relationships %}
    <div class="card">
        <div class="card-header"><strong>Relationships</strong></div>
        <div class="card-body">
            {% render_relationships form %}
        </div>
    </div>
{% endif %}
{% if form.object_note and perms.extras.add_note %}
    <div class="card">
        <div class="card-header"><strong>Notes</strong></div>
        <div class="card-body">
            {% render_field form.object_note %}
        </div>
    </div>
{% endif %}
{% if form.dynamic_groups and perms.extras.add_staticgroupassociation %}
    <div class="card">
        <div class="card-header"><strong>Static Assignment to Dynamic Groups</strong></div>
        <div class="card-body">
            {% render_field form.dynamic_groups %}
        </div>
    </div>
{% endif %}
{% if form.tags %}
    <div class="card">
        <div class="card-header"><strong>Tags</strong></div>
        <div class="card-body">
            {% render_field form.tags %}
        </div>
    </div>
{% endif %}
